package database;

public class Nurse extends Staff {

	private static final long serialVersionUID = -2219086513699339584L;

	public Nurse(String name, Division division) {
		this.name = name;
		this.division = division;
		read = DIVISION;
		write = PERSONAL;
	}

	public String toString() {
		String str = "---Staff file---\n" + "Name: \t\t" + name + "\n"
				+ "Profession: \tNurse\n" + "Division: \t" + division + "\n"
				+ "---Assigned patients---\n";
		for (Patient patient : getPatients())
			str += patient.getName() + "\n";
		return str + "---End of assigned patients---\n---End of staff file---";
	}

}
